package cn.auction.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *拍卖表
 */
public class Auction implements Serializable {
    private static final long serialVersionUID = -6016074448892717083L;
    //拍卖品编号
    private Long auctionId;
    //拍卖品名称
    private String auctionName;
    //拍卖品起拍价
    private Double auctionStartPrice;
    //拍卖品底价
    private Double auctionUpset;
    //拍卖品拍卖开始时间
    private Date auctionStartTime;
    //拍卖品拍卖结束时间
    private Date auctionEndTime;
    //拍卖品图片路径
    private String auctionPic;
    //拍卖品图片扩展名
    private String auctionPicType;
    //拍卖品描述
    private String auctionDesc;
    /**
     * 添加了一个集合字段
     */
    //通过实体类存储竞拍记录表List集合
    private List<AuctionRecord> auctionRecords = new ArrayList();

    public Auction() {
    }

    public Auction(String auctionname, Double auctionstartprice, Double auctionupset, Date auctionstarttime, Date auctionendtime, String auctionpic, String auctionpictype) {
        this.auctionName = auctionname;
        this.auctionStartPrice = auctionstartprice;
        this.auctionUpset = auctionupset;
        this.auctionStartTime = auctionstarttime;
        this.auctionEndTime = auctionendtime;
        this.auctionPic = auctionpic;
        this.auctionPicType = auctionpictype;
    }

    public Auction(String auctionname, Double auctionstartprice, Double auctionupset, Date auctionstarttime, Date auctionendtime, String auctionpic, String auctionpictype, String auctiondesc, List<AuctionRecord> auctionrecords) {
        this.auctionName = auctionname;
        this.auctionStartPrice = auctionstartprice;
        this.auctionUpset = auctionupset;
        this.auctionStartTime = auctionstarttime;
        this.auctionEndTime = auctionendtime;
        this.auctionPic = auctionpic;
        this.auctionPicType = auctionpictype;
        this.auctionDesc = auctiondesc;
        this.auctionRecords = auctionrecords;
    }

    public Long getAuctionId() {
        return this.auctionId;
    }

    public void setAuctionId(Long auctionid) {
        this.auctionId = auctionid;
    }

    public String getAuctionName() {
        return this.auctionName;
    }

    public void setAuctionName(String auctionname) {
        this.auctionName = auctionname;
    }

    public Double getAuctionStartPrice() {
        return this.auctionStartPrice;
    }

    public void setAuctionStartPrice(Double auctionstartprice) {
        this.auctionStartPrice = auctionstartprice;
    }

    public Double getAuctionUpset() {
        return this.auctionUpset;
    }

    public void setAuctionUpset(Double auctionupset) {
        this.auctionUpset = auctionupset;
    }

    public Date getAuctionStartTime() {
        return this.auctionStartTime;
    }

    public void setAuctionStartTime(Date auctionstarttime) {
        this.auctionStartTime = auctionstarttime;
    }

    public Date getAuctionEndTime() {
        return this.auctionEndTime;
    }

    public void setAuctionEndTime(Date auctionendtime) {
        this.auctionEndTime = auctionendtime;
    }

    public String getAuctionPic() {
        return this.auctionPic;
    }

    public void setAuctionPic(String auctionpic) {
        this.auctionPic = auctionpic;
    }

    public String getAuctionPicType() {
        return this.auctionPicType;
    }

    public void setAuctionPicType(String auctionpictype) {
        this.auctionPicType = auctionpictype;
    }

    public String getAuctionDesc() {
        return this.auctionDesc;
    }

    public void setAuctionDesc(String auctiondesc) {
        this.auctionDesc = auctiondesc;
    }

    public List<AuctionRecord> getAuctionRecords() {
        return this.auctionRecords;
    }

    public void setAuctionRecords(List<AuctionRecord> auctionrecords) {
        this.auctionRecords = auctionrecords;
    }
}
